package com.example.demo02.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "药品类", description = "$!{table.comment}")
public class Medicine {
    @Schema(description = "id")
    private int id;
    @TableField(value = "medicine_img")
    private String medicineImg;
    @Schema(description = "药品名称")
    private String name;
    @Schema(description = "药品药效")
    private String efficacy;
    @Schema(description = "药品价格")
    private double price;
    @Schema(description = "药品数量")
    private int num;
}
